﻿using FreeSql.DataAnnotations;
using Jumei.Common.BaseModel;

namespace Jumei.Model.Business.GoodsManage
{
    /// <summary>
    /// 商品属性表
    /// </summary>
    [Table(Name = "gd_goods_appraises")]
    public class GoodsAttributesEntity : EntityFull, ITenant
    {
        /// <summary>
        /// 租户Id
        /// </summary>
        [Column(Position = -10)]
        public long? TenantId { get; set; }

        /// <summary>
        /// 店铺ID
        /// </summary>
        public long ShopId { get; set; }

        /// <summary>
        /// 商品ID
        /// </summary>
        public long GoodsId { get; set; }

        public GoodsEntity Goods { get; set; }

        /// <summary>
        /// 属性名称
        /// </summary>
        public long AttrId { get; set; }

        /// <summary>
        /// 属性值
        /// </summary>
        public long AttrVal { get; set; }   
    }
}
